<?php

header('Content-Type:text/html:charset=utf-8');
$db=new mysqli("localhost",'root','','db_bbs',3306);
if($db->connect_errno){
    die("连接失败，出错信息为：".$db->connect_errno);
    
}
echo "连接成功";


$co=  mysqli_connect('localhost','root','','db_bb2s',3306) or die ("连接失败,出错的信息是".mysqli_connect_errno());
echo "连接成功";